import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p014 from './p014';
export default async function a006(fd: IFeidaoAiBrowserComponent, e: Event) {
	// todo依据下拉框中选中的“安全部门名称”对应的“安全部门编号”，查<人员信息汇总total_staff_inf>表中的“员工编号”“员工姓名”，将“员工姓名”渲染在下拉框内。
	const d = e.currentTarget as HTMLSelectElement;
	const safety_department_no = d.value.split(",")[1];
	if (safety_department_no) {
		const res = await nodejs('device-management/zj-000001/s010', {
			filter: {
				safety_department_no
			}
		});
		render(fd, res, p014, 'p014', 'inner');
	}
}
